<template>
  <div
    style="color: red; font-size: 8px; text-align: left;"
    v-if="textVal && textVal.length >= (num || textMaxLength)"
  >
    字数不能超过500字！！
  </div>
</template>

<script>
export default {
  name: "comTip",
  props: ['textVal', 'num'],
  data(){
    return {
      textMaxLength: 500,
    }
  }

};
</script>

<style scoped>

</style>
